Interface: VideoProcessor
Properties
destroy
• destroy: () => Promise
<void
>
Type declaration
▸ (): Promise
<void
>
Destroy the segmentation wasm instance
Returns
Promise
<void
>
process
• process: (source
: MediaStream
) => Promise
<MediaStream
>
Type declaration
▸ (source
): Promise
<MediaStream
>
Process the video and return a MediaStream
Parameters
Name | Type |
---|---|
source | MediaStream |
Returns
Promise
<MediaStream
>
Methods
close
▸ close(): void
Stop the process of video segmentation
Returns
void
open
▸ open(): Promise
<void
>
Returns
Promise
<void
>